// File:    TnLoad.cs
// Author:  HT
// Created: Thursday, October 20, 2011 10:48:43 AM
// Purpose: Definition of Class TnLoad

using System;
using ESRI.ArcGIS.Geodatabase;

namespace Tayninh2011
{
   public class TnLoad : ITnLoad
   {
      private string field="";


      #region ITnLoad Members

      string ITnLoad.field
      {
          get
          {
              return this.field;
          }
          set
          {
              this.field = value;
          }
      }

      object ITnLoad.GetVal(ref TnGeoObject geoObject,string field)
      {
          return geoObject.Row.get_Value(geoObject.Row.Fields.FindField(field));
      }
      object ITnLoad.GetVal(IRow row, string field)
      {
          return row.get_Value(row.Fields.FindField(field));
      }

      object ITnLoad.GetVal(IFeature feature, string field)
      {
          return feature.get_Value(feature.Fields.FindField(field));
      }
      #endregion
   }
}
